package InnerGameParts;


import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;

public interface RemoteList<T extends Serializable> extends Remote, Serializable{

	void add(T arg1) throws RemoteException;

	void add(Collection< ? extends T> arg1) throws RemoteException;
	
	void clear() throws RemoteException;

	public boolean contains(Object arg0)throws RemoteException;
	
	public T get(int arg0) throws RemoteException;

	//public int indexOf(T arg0) throws RemoteException ;
	
	public boolean isEmpty() throws RemoteException ;

	public boolean remove(T arg0)throws RemoteException ;

	public T remove(int arg0) throws RemoteException ;

	public int size() throws RemoteException ;
	
	public  T next(T arg0) throws RemoteException;
	
	T getFirst()  throws RemoteException;
}
